import { createApp } from 'vue';
// import './style.css'
import App from '@/App.vue';
import './style/reset.scss';

import HospitalTop from '@/components/hospital_top/index.vue';
import HospitalBottom from '@/components/hospital_bottom/index.vue';
import Login from '@/components/login/index.vue';
import Visitor from '@/components/visitor/visitor.vue'
const app = createApp(App);
app.component('HospitalTop', HospitalTop);
app.component('HospitalBottom', HospitalBottom);
app.component('Login', Login);
app.component('Visitor', Visitor);
//引入vue-router核心插件并安装
import router from '@/router';

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//国际化文件,使分页器的文字变成中文
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
app.use(ElementPlus, {
  locale: zhCn,
})

//引入pinia仓库
import pinia from '@/store'

//引入路由鉴权
import './permisstion'

//安装pinia仓库
app.use(pinia);

//安装vue-router
app.use(router);

app.mount('#app');
